import request from '@/plugin/axios'

// 消息已读
export function readMessage(id) {
    return request({
        url: '/chat/messageseerecord/read/' + id,
        method: 'post'
    })
}
// 消息删除
export function delMessage(id) {
    return request({
        url: '/chat/messageseerecord/del/' + id,
        method: 'post'
    })
}

// ------------------
// 获取分页列表
export function getmessageseerecordpage(params) {
    return request({
        url: '/chat/messageseerecord/page',
        method: 'get',
        params: request.adornParams(params)
    })
}

// 获取列表
export function getmessageseerecordlist(params) {
    return request({
        url: '/chat/messageseerecord/list',
        method: 'get',
        params: request.adornParams(params)
    })
}

// 获取信息
export function getmessageseerecordinfo(id) {
    return request({
        url: '/chat/messageseerecord/info/' + id,
        method: 'get',
        params: request.adornParams({})
    })
}

// 添加
export function addmessageseerecord(data) {
    return request({
        url: '/chat/messageseerecord/save',
        method: 'post',
        data
    })
}

// 修改
export function updatemessageseerecord(data) {
    return request({
        url: '/chat/messageseerecord/update',
        method: 'put',
        data
    })
}

// 批量删除
export function delBatchmessageseerecord(params) {
    return request({
        url: '/chat/messageseerecord/delete',
        method: 'post',
        data: request.adornData(params, false)
    })
}

// 删除
export function delmessageseerecord(id) {
    return request({
        url: '/chat/messageseerecord/delete/' + id,
        method: 'delete',
    })
}